public class MyArray1<T> {
    public Object[] array=new Object[3];
    public void setArray(int pos,T values){
         array[pos]=values;
    }
    public T getArray(int pos){
        return (T) array[pos];
    }

}
